<link href="/Public/Home/public/all_common.css" rel="stylesheet" type="text/css">
<?php $this->Hinc('header')?>
<div class="container clearfix">

    <div class="checkout-box">

        <div class="checkout-box-bd">
            <div class="xlj-box">
                <div class="box-hd ">
                    <h2 class="title">收货地址</h2>
                </div>
                <div class="box-bd">
                    <div class="clearfix xlj-address-list" id="checkoutAddrList">
                        <!--地址信息-->

                        <dl class="item" data-addressid="112904">
                           <?php echo $order['path']?>
                        </dl>

                    </div>
                </div>
            </div>
            <div id="checkoutPayment">
                <div class="xlj-box">
                    <div class="box-hd ">
                        <h2 class="title">支付方式</h2>
                    </div>
                    <div class="box-bd-chekout">
                      <p><?php echo $order['pay']?></p>
                    </div>
                </div>
            </div>
        </div>
        <div class="checkout-box-ft clearfix">

            <div id="checkoutGoodsList" class="checkout-goods-box">
                <div class="xlj-box">
                    <div class="box-hd">
                        <h2 class="title">商品信息</h2>
                    </div>
                    <div class="box-bd-chekout">
                        <table class="checkout-goods-list" cellpadding="0" cellspacing="0">
                            <thead>
                            <tr>
                                <th class="col-1">商品名称</th>
                                <th class="col-2">价格</th>
                                <th class="col-2">购买数量</th>
                                <th class="col-2">小计</th>
                            </tr>
                            </thead>
                            <tbody>
                            <!--显示购买商品数据-->
                            <?php $zje=0;foreach($goods as $v){?>
                            <tr>
                                <td class="col-1">
                                    <a style="color: #000000" href="<?php $this->U('Index','goods&id='.$v['g_id'])?>" target="_blank">
                                        <?php echo $v['name']?>
                                        &nbsp;&nbsp;|&nbsp;&nbsp;
                                        <?php echo $v['gname']?>
                                    </a>
                                </td>
                                <td class="col-2">￥<?php echo $v['money']+$v['gmoney']?>元</td>
                                <td class="col-2"><?php echo $v['num']?></td>
                                <td class="col-2">￥<?php echo $v['num']*($v['money']+$v['gmoney']);?>元</td>
                            </tr>
                            <?php
                                    $num=$v['num']*($v['money']+$v['gmoney']);
                                    $zje+=$num;
                                }?>
                            </tbody>
                        </table>
                        <div class="checkout-count clearfix">
                            <div class="checkout-price" id="checkout-price">
                                <ul>
                                    <li>
                                        <?php echo count($arr);?>件
                                    </li>
                                    <li>
                                        总计：<strong id="totalPrice">￥<?php echo $zje?>元</strong>
                                    </li>
                                </ul>
                            </div>
                        </div>
                    </div>
                </div>
            </div>

        </div>

    </div>
</div>

<?php $this->Hinc('footer')?>